﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows;

namespace TaskDialog
{
    public static class TaskDialogHelper
    {
        public static TaskDialogResults ShowDialog(Window parent, string title, string mainInstruction, string content, TaskDialogButtons buttons, TaskDialogIcon icon)
        {
            return NativeMethods.TaskDialog(new System.Windows.Interop.WindowInteropHelper(parent).Handle,
                IntPtr.Zero, title, mainInstruction, content, buttons, icon);

        }
    }
}
